<template>
    <view>
      <h1 style="font-size: 50px;">网站阅览量</h1>
      <el-icon style="font-size: 200px;"><Reading /></el-icon>
      <p style="font-size: 50px;">{{postViewSum}}</p>
    </view>
  </template>
  
  <script setup>
  import {dashboard} from '@/api'
  import {ref,onMounted} from 'vue'
  
  const postViewSum = ref(0)
  
  onMounted(async()=>{
      const res = await dashboard.postViewSum().then(res=>{
          console.log(res)
          return res
      })
      postViewSum.value = res.data.data
  }
  )
  </script>
  
  <style>
  
  </style>